﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.ComponentModel;

namespace UtilsTests
{
	
	
	/// <summary>
	///This is a test class for TypeConverterExtensionsTest and is intended
	///to contain all TypeConverterExtensionsTest Unit Tests
	///</summary>
	[TestClass()]
	public class TypeConverterExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for ConvertFrom
		///</summary>
		public void ConvertFromTestHelper<TItem>()
		{
			TItem item = default(TItem); // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = TypeConverterExtensions.ConvertFrom<TItem>(item);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertFromTest()
		{
			ConvertFromTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for ConvertFrom
		///</summary>
		public void ConvertFromTest1Helper<TItem>()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			TItem expected = default(TItem); // TODO: Initialize to an appropriate value
			TItem actual;
			actual = TypeConverterExtensions.ConvertFrom<TItem>(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertFromTest1()
		{
			ConvertFromTest1Helper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for ConvertFromInvariantString
		///</summary>
		public void ConvertFromInvariantStringTestHelper<TItem>()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			TItem expected = default(TItem); // TODO: Initialize to an appropriate value
			TItem actual;
			actual = TypeConverterExtensions.ConvertFromInvariantString<TItem>(text);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertFromInvariantStringTest()
		{
			ConvertFromInvariantStringTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for ConvertToInvariantString
		///</summary>
		public void ConvertToInvariantStringTestHelper<TItem>()
		{
			TItem item = default(TItem); // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = TypeConverterExtensions.ConvertToInvariantString<TItem>(item);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConvertToInvariantStringTest()
		{
			ConvertToInvariantStringTestHelper<GenericParameterHelper>();
		}

		/// <summary>
		///A test for Converter
		///</summary>
		[TestMethod()]
		public void ConverterTest()
		{
			Type type = null; // TODO: Initialize to an appropriate value
			TypeConverter expected = null; // TODO: Initialize to an appropriate value
			TypeConverter actual;
			actual = TypeConverterExtensions.Converter(type);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for Converter
		///</summary>
		public void ConverterTest1Helper<TItem>()
		{
			TItem item = default(TItem); // TODO: Initialize to an appropriate value
			TypeConverter expected = null; // TODO: Initialize to an appropriate value
			TypeConverter actual;
			actual = TypeConverterExtensions.Converter<TItem>(item);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		[TestMethod()]
		public void ConverterTest1()
		{
			ConverterTest1Helper<GenericParameterHelper>();
		}
	}
}
